<template>
  <ant-modal
    modalWidth="800"
    modalHeight="550"
    :visible="open"
    :modal-title="formTitle"
    :adjust-size="true"
    @cancel="cancel"
  >
    <a-form-model
      ref="form"
      :model="form"
      :rules="rules"
      slot="content"
      layout="vertical"
    >
      <a-row :gutter="32">
        <a-col span="24">
          <a-form-model-item label="更新版本号" prop="versionNumber">
            <a-input
              v-model="form.versionNumber"
              placeholder="请输入更新版本号"
            />
          </a-form-model-item>
        </a-col>
      </a-row>
      <a-row :gutter="32">
        <a-col span="24">
          <a-form-model-item label="内容" prop="info" class="addModel">
            <div style="margin: 0" id="vditor" name="description"></div>
          </a-form-model-item>
        </a-col>
      </a-row>
      <a-row :gutter="32"> </a-row>
    </a-form-model>
    <template slot="footer">
      <a-button @click="cancel"> 取消 </a-button>
      <a-button type="primary" @click="submitForm"> 保存 </a-button>
    </template>
  </ant-modal>
</template>
<script>
import SysPublishLogAddForm from "./SysPublishLogForm";
export default {
  ...SysPublishLogAddForm,
};
</script>
<style lang="less">
#vditor {
  margin: 0 5% 5% 5%;
}
.addModel {
  .vditor-toolbar--pin {
    top: auto !important;
  }
}
</style>
